package com.oop.demo06;


public class Animal {
    String name;
    //构造器
    public Animal(){}
    public Animal(String name){
        this.name = name;

    }
    void eat() {
        System.out.println("animal : eat");
}
}
